package com.meilai.project.vo.business.media;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * @author 杨凯博
 * @date 2022/2/13
 */


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value="返回对象-点位-楼单元", description="返回对象-点位-楼单元")
public class MediaPointUnitVO implements Comparable<MediaPointUnitVO>{
    @ApiModelProperty("单元号")
    private String unitName;

    @ApiModelProperty(value = "点位-楼层集合")
    private List<MediaPointFloorVO> floorList;

    @JsonIgnore
    @ApiModelProperty("单元号-数字排序")
    private String unit_number;
    @JsonIgnore
    @ApiModelProperty(value = "楼层map集合,不返回前端")
    private Map<String,MediaPointFloorVO> floorMap;

    @Override
    public int compareTo(MediaPointUnitVO o) {
        return this.unit_number.compareTo(o.unit_number);
    }
}
